package com.zf.yichat.vo;

/**
 * 一句话描述功能
 *
 * @author fengsong
 * @date create in 18:44 2019/5/30 2019
 */
public enum MissionCheckStatus {

    //  0进行中 1待审核  2已审核通过   3审核不通过 4超时自动审核通过 5未提交任务超时关闭
    doing(0, "进行中"), submit(1, "待审核"), check_pass(2, "已完成"), check_no_pass(3, "已拒绝"), overtime_pass(4, "已完成"), overtime_cancle(5, "已取消");

    MissionCheckStatus(Integer val, String desc) {
        this.val = val;
        this.desc = desc;
    }

    private int val;
    private String desc;

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }


    public static MissionCheckStatus valOf(Integer va) {

        for (MissionCheckStatus s : MissionCheckStatus.values()) {
            if (s.getVal() == va) {
                return s;
            }
        }

        return null;
    }
}
